<?php

header("Content-Type: text/html; charset=utf-8"); 
require_once('sessionVal.php');

require("../config.inc.php");
require_once(COMM_PATH."BMS.php");

$bms = new BMS();
$cateID = $_GET['F_ID'];

if($cateID==null || $cateID==""){
	echo 'ID为空！';
	echo "<a href='category.php'>返回</a>";
	exit();
}else {
	if($bms->delData($bms->_CATEGORY,$cateID)){
		echo "<script type=\"text/javascript\">alert(\"删除成功！\");window.location.href=\"category.php\";</script>";
		exit;
	}else{
		echo "<script type=\"text/javascript\">alert(\"删除失败！\");window.location.href=\"category.php\";</script>";
		exit;
	}
}
?>